package service;

import java.util.List;

import dao.DrugDao;
import entity.Drug;
import util.PageTools;

public class DrugService {
    private DrugDao DrugDao=new DrugDao();
	
	public boolean insertDrug(Drug Drug) {
		return DrugDao.insertDrug(Drug);
	}
	public boolean deleteDrugByDid(String did) {
		return DrugDao.deleteDrugByDid(did);
	}
	public List<Drug> showDrug(){
		return DrugDao.selectDrug();
	}
	public int counts() {
		return DrugDao.counts();
	}
	public List<Drug> showDrugByPage(PageTools pt){
		return DrugDao.selectDrugByPage(pt);
	}
	public Drug showDrugByDid(String did) {
		return DrugDao.selectDrugByDid(did);
	}
	public boolean updateDrug(Drug Drug) {
		return DrugDao.updateDrug(Drug);
	}

}
